package com.yuxi.modelDesc;

import lombok.Data;
import com.yuxi.model.SysOperLog;


import com.yuxi.enums.SysOperLogBusinessTypeEnum;
import com.yuxi.enums.SysOperLogOperatorTypeEnum;
import com.yuxi.enums.SysOperLogShowFlagEnum;
import com.yuxi.enums.SysOperLogDelFlagEnum;

/**
*    @author sunke
*    @Date 2023-10-13 10:28:19
*    @description SysOperLogDesc      操作日志记录
*/
@Data
public class SysOperLogDesc extends SysOperLog {


    private String businessTypeDesc;
    private String operatorTypeDesc;
    private String showFlagDesc;
    private String delFlagDesc;

    public String getBusinessTypeDesc() {
        businessTypeDesc=SysOperLogBusinessTypeEnum.getDescByType(getBusinessType());
        return businessTypeDesc;
    }
    public String getOperatorTypeDesc() {
        operatorTypeDesc=SysOperLogOperatorTypeEnum.getDescByType(getOperatorType());
        return operatorTypeDesc;
    }
    public String getShowFlagDesc() {
        showFlagDesc=SysOperLogShowFlagEnum.getDescByType(getShowFlag());
        return showFlagDesc;
    }
    public String getDelFlagDesc() {
        delFlagDesc=SysOperLogDelFlagEnum.getDescByType(getDelFlag());
        return delFlagDesc;
    }
}

